﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MODEL;
using DAL;
using System.Threading.Tasks;

namespace Service
{
    public class AlertDocService : IAlertDocService
    {
        public async Task<IEnumerable<AlertDoc>> QueryAlertDocsAsync(AlertDocQueryCriteria criteria = null)
        {
            return await AlertDocDAL.QueryAlertDocsAsync(criteria);
        }

        public async Task<int> InsertOrUpdateAlertDoc(AlertDoc alertDoc)
        {
            return await AlertDocDAL.InsertOrUpdateAlertDoc(alertDoc);
        }

        public async Task<int> DeleteAlertDoc(List<int> alertDocIdList)
        {
            return await AlertDocDAL.DeleteAlertDoc(alertDocIdList);
        }
    }    
}
